import 'package:flutter/material.dart';

class XyHomePage extends StatefulWidget {
  const XyHomePage({Key? key}) : super(key: key);

  @override
  _XyHomePageState createState() => _XyHomePageState();
}

class _XyHomePageState extends State<XyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(child: Column(

        children: [

          ElevatedButton(onPressed: () {
            Navigator.pushNamed(context, '/button');
          }, child: Text('按钮练习'))

        ],

      )),
    );
  }
}
